// Play a sound
(
var sample,b;
b = Buffer.read(s,"sounds/a11wlk01.wav");
sample={PlayBuf.ar(1,b,BufRateScale.kr(b))};
{Pan2.ar(sample,SinOsc.kr(0.3))}.scope;
)

// Play a sound at a variable rate
(
var b,trig;
b = Buffer.read(s,"sounds/a11wlk01.wav");
trig = Impulse.kr(MouseY.kr(-1,1,1));
{PlayBuf.ar(1, b.bufnum, BufRateScale.kr(b.bufnum), trig, 0, 1)}.scope;
)

{Saw.ar(10,2,add:1)}.scope(0.2)

                                              